package com.wulijie.builder;

/**
 * @Author cui
 * @Data
 */
public class DirecterBuilder {
    private HouseBuilder houseBuilder;

    public DirecterBuilder(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public House buildHouse() {
        houseBuilder.buildBasic();
        houseBuilder.buildWall();
        return houseBuilder.buildHouse();
    }
}
